# write()方法
import turtle

t = turtle.Pen()

name = turtle.textinput("姓名输入框", "请输入你的姓名")

for i in range(100):
    t.pencolor("red")
    t.pensize(4)

    t.penup()
    t.forward(i * 4)
    t.pendown()
    t.write(name, font=("Arial", int((i+4)/4), "bold"))

    t.left(90)

turtle.mainloop()